package com.zhixiang.xaec.entity.safebase.accidentmanage;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.cfg.Comment;

import com.googlecode.jsonplugin.annotations.JSON;
import com.zhixiang.xaec.entity.BaseEntity;


@Entity
@Table(name = "safebase_AccidentRecord")
@Comment("事故档案")
public class AccidentRecord extends BaseEntity {
    
	@Comment("事故编号")
	@Column(length=500)
	private String accidentNumber;
	
	@Comment("事故名称")
	@Column(length=500)
    private String accidentName;
    
	@Comment("事故等级")
	@Column(length=500)
	private String accidentLevel;
	
	@Comment("主要负责人")
	@Column(length=500)
    private String accidentPrincipal;
    
	@Comment("次要负责人")
	@Column(length=500)
    private String minorAccidentPrincipal;//联系人
    
	@Comment("填报人")
	@Column(length=500)
    private String notetaker;// 填报人
    
    
	@Comment("发生事故时间")
	@Column(length=500)
    private Date accidentTime;// 发生事故时间
    
	@Comment("处理（人/部门")
	@Column(length=500)
    private String handler;// 处理（人/部门）
    
	@Comment("处理时间")
	@Column(length=500)
    private Date handleDate;// 填报时间
    
	@Comment("事故地点")
	@Column(length=500)
    private String place;// 事故地点
    
	@Comment("事故简况")
	@Column(length=1000)
    private String process;// 事故简况
 
	@Comment("事故结论")
	@Column(length=1000)
    private String result;
   
	/*
	 * 扩展属性定义
	 */
	@Comment("现场证据")
	@Column(length=1000)
	private String evidence;
	
	@Comment("事故原因")
	@Column(length=1000)
    private String reason;// 事故原因
	
	@Comment("纠正措施")
	@Column(length=1000)
	private String measure;
	
	@Comment("纠正措施效果")
	@Column(length=1000)
	private String  effect;
	
	@Comment("处理依据")
	@Column(length=1000)
	private String pursuant;
	
	@Comment("处理注意事项")
	@Column(length=1000)
	private String announcements;

	public String getAccidentNumber() {
		return accidentNumber;
	}

	public void setAccidentNumber(String accidentNumber) {
		this.accidentNumber = accidentNumber;
	}

	public String getAccidentName() {
		return accidentName;
	}

	public void setAccidentName(String accidentName) {
		this.accidentName = accidentName;
	}

	public String getAccidentLevel() {
		return accidentLevel;
	}

	public void setAccidentLevel(String accidentLevel) {
		this.accidentLevel = accidentLevel;
	}

	public String getAccidentPrincipal() {
		return accidentPrincipal;
	}

	public void setAccidentPrincipal(String accidentPrincipal) {
		this.accidentPrincipal = accidentPrincipal;
	}

	public String getMinorAccidentPrincipal() {
		return minorAccidentPrincipal;
	}

	public void setMinorAccidentPrincipal(String minorAccidentPrincipal) {
		this.minorAccidentPrincipal = minorAccidentPrincipal;
	}


	public String getNotetaker() {
		return notetaker;
	}

	public void setNotetaker(String notetaker) {
		this.notetaker = notetaker;
	}
	@JSON(format="yyyy-MM-dd")
	public Date getAccidentTime() {
		return accidentTime;
	}

	public void setAccidentTime(Date accidentTime) {
		this.accidentTime = accidentTime;
	}

	public String getHandler() {
		return handler;
	}

	public void setHandler(String handler) {
		this.handler = handler;
	}
	@JSON(format="yyyy-MM-dd")
	public Date getHandleDate() {
		return handleDate;
	}

	public void setHandleDate(Date handleDate) {
		this.handleDate = handleDate;
	}

	public String getPlace() {
		return place;
	}

	public void setPlace(String place) {
		this.place = place;
	}

	public String getProcess() {
		return process;
	}

	public void setProcess(String process) {
		this.process = process;
	}

	public String getResult() {
		return result;
	}

	public void setResult(String result) {
		this.result = result;
	}

	public String getEvidence() {
		return evidence;
	}

	public void setEvidence(String evidence) {
		this.evidence = evidence;
	}

	public String getReason() {
		return reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	public String getMeasure() {
		return measure;
	}

	public void setMeasure(String measure) {
		this.measure = measure;
	}

	public String getEffect() {
		return effect;
	}

	public void setEffect(String effect) {
		this.effect = effect;
	}

	public String getPursuant() {
		return pursuant;
	}

	public void setPursuant(String pursuant) {
		this.pursuant = pursuant;
	}

	public String getAnnouncements() {
		return announcements;
	}

	public void setAnnouncements(String announcements) {
		this.announcements = announcements;
	}
	
	
	
	
}